# -- coding: utf-8 --

import re

str = "../Book/BaiYeJing/byj125.html"



matchObj = re.match(r'.+[/]byj([0-9]+)[.]html', str)

if matchObj:
    print(matchObj.group(1))
else:
    print
    "No match!!"
